﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DevExpress.XtraPrinting;
using DevExpress.XtraReports.UI;

namespace FisApp.Reports
{
    public class ReportViewer
    {
        public void ShowFis(int id)
        {

            if (id == 0)
                return;

            
            //DataTable fisbilgileri
            //XtraReport1 report = new XtraReport1(id);
            XtraReport4 report = new XtraReport4(id);

            //report.DataSource = ds.Tables[0];
            report.AssignPrintTool(new ReportPrintTool(report));
            report.CreateDocument();
            report.ShowPreview();
        }
    }
}
